<template>
        <div class="row">
            <div class="col-lg-12">
                <div class="pull-right social-action dropdown" style="margin-right: 25px;">
                <button data-toggle="dropdown" class="btn btn-primary btn-sm dropdown-toggle">{{$store.state.on_line_weChat_name}} <span class="caret"></span></button>
                <ul class="dropdown-menu m-t-xs">

                <li v-for="(item,key) in $store.state.weChat_name" v-on:click="changWeChat(item,key)" ><a href="javascript:;">{{item}}</a></li>
                </ul>
                </div>

                <div class="tab-content">
                    <router-view></router-view>
                </div>
            </div>
        </div>
</template>

<script>
    export default {
        created: function () {
            this.$store.dispatch('getUserinfo');
        },
        methods: {
            changWeChat: function (name,id) {
                this.$store.commit('seton_line_weChat_id', id) ;
                this.$store.commit('seton_line_weChat_name',name);
            }
        },
    }
</script>